package sword.T17;

/**
 * @File Info: leetcode -- <Solution>
 * @Author: 18362
 * @Create: 2022-03-23 20:53:53 星期三
 */

class Solution {
    public int[] printNumbers(int n) {
        int len = 1;
        for (int i=0; i<n; ++i)
            len *= 10;
        int[] res = new int[len-1];
        for(int i=0; i<res.length; ++i)
            res[i] = i+1;
        return res;
    }
}